package action.plan;

import java.util.List;

import presentation.PageVO;
import presentation.extendmodel.TdfkfaMainEx;
import presentation.queryvo.PlanListQueryVO;
import service.PlanService;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class ListThirdSubmittedPlanAction extends ActionSupport {

    private static final long serialVersionUID = -2663170200094330420L;

    private List<TdfkfaMainEx> planList;

    private PlanService planService;

    private PlanListQueryVO queryVO;

    private PageVO pageVO;

    public String execute() throws Exception {

        queryVO.setScztCode("3");
        
        pageVO.setRecordNum(planService.countSubmittedPlan(queryVO));
        
        planList = planService.getSubmittedPlanList(queryVO, pageVO.getIntPageIndex(), pageVO.getIntPageSize());
        return Action.SUCCESS;
    }

    public List<TdfkfaMainEx> getPlanList() {
        return planList;
    }

    public PlanListQueryVO getQueryVO() {
        return queryVO;
    }

    public void setQueryVO(PlanListQueryVO queryVO) {
        this.queryVO = queryVO;
    }

    public PageVO getPageVO() {
        return pageVO;
    }

    public void setPageVO(PageVO pageVO) {
        this.pageVO = pageVO;
    }

    public void setPlanService(PlanService planService) {
        this.planService = planService;
    }

}
